#pragma once
#include<string>
#include"Course.h"
#include<vector>
using namespace std;
class Student
{
private:
	string studentNumber;
	string password;
	string name;
	string gender;
	int classRank;
	int gradeSum;
public:
	vector<Course> courses;
	Student();
	Student(string studentNumber, string name, string gender, int courseSum, string CourseName[], int CourseGrade[],string password);
	bool enterPassword(string password);
	void setStudentNumber(string studentNumber);
	void setName(string name);
	void setGender(string gender);
	void setClassRank(int classRank);
	void setPassword(string password);
	bool changePassword(string oldPassword,string newPasswod);
	bool changeCourseGrade(string courseName, int changedGreade);
	int getClassRank();
	void printStudentinformtion();
	string getName();
	int getGradeSum();
	string getStudentNumber();
	string getGender();
	string getPassword();
 	int getCourseGrade(string courseName);
};

